/**
 * @Author MrLi
 * @Version 1.0
 * @Date 2023-08-03 14:59:45
 */
package com.cl.erp_2301.Service.impl;

import com.cl.erp_2301.Service.StoreDetailService;
import com.cl.erp_2301.dto.StoreDTO;
import com.cl.erp_2301.entity.Goods;
import com.cl.erp_2301.entity.Store;
import com.cl.erp_2301.mapper.StoreDetailMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StoreDetailServiceImpl implements StoreDetailService {
    @Resource
    private StoreDetailMapper storeDetailMapper;

    @Override
    public List<Store> storeList() {
        return storeDetailMapper.storeList();
    }

    @Override
    public List<Goods> goodsList() {
        return storeDetailMapper.goodsList();
    }

    @Override
    public List<StoreDTO> findAll(String storeName, String goodsName) {
        return storeDetailMapper.findAll(storeName,goodsName);
    }

}
